
# # 选择结构 按照条件选择执行不同代码段
# number = eval(input('请输入中奖号码：'))
# 单分支结构
# if number == 123456:
#     print('恭喜您！中大奖')
#
# if number != 123456:
#     print('未中奖')

# result = '恭喜您！中大奖' if number == 123456 else '未中奖'
# print(result)

# # 双分支结构
# n = 7
# if n % 2:
#     print(n, '是奇数')
# else:
#     print(n, '是偶数')

# # 多分支结构
# score = eval(input('请输入成绩：'))
# if score < 0 or score > 100:
#     print('成绩有误')
# elif 0<=score<60:
#     print('E')
# elif 60<=score<70:
#     print('D')
# elif 70<=score<80:
#     print('C')
# elif 80<=score<90:
#     print('B')
# else: print('A')

# # 嵌套if
# answer = input('查酒驾，你喝酒了吗？')
# if answer == 'y':
#     alcohol = eval(input('酒精含量是：'))
#     if alcohol < 20:
#         print('不够成酒驾')
#     elif alcohol < 80:
#         print('已构成酒驾，请不要开车')
#     else:
#         print('已构成醉驾，请下车')
# else:
#     print('你走吧，没啥事')
#
# 多个条件的连接
user_name = input('请输入用户名：')
pwd = input('请输入密码：')
if user_name == 'admin' and pwd == '123456':
    print('登陆成功！')
else:
    print('用户名或密码错误')